# It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Desktop Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description - Script to connect a printer to agent # Parameters - "" # "" # "" # Configuration Type - USER/COMPUTER # !/usr/bin/bash PRINTERNAME=$1 PRINTERIP=$2 PATHTOPPD=$3 lpadmin -E -p "$PRINTERNAME" -v "$PRINTERIP" -P "$PATHTOPPD" -o printer-is-shared=false echo Printer connected